package cn.lutu.adapter.controller;




import cn.lutu.alipay.service.AlipayOrderService;
import cn.lutu.alipay.pojo.entity.AlipayOrder;
import cn.lutu.util.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/order")
@Api(tags = "支付订单")
public class AlipayOrderController {
    @Autowired
    private AlipayOrderService orderService;

    @GetMapping("/list")
    @ApiOperation("订单列表")
    public BaseResult list(){
        List<AlipayOrder> list=orderService.list();
        return BaseResult.success(list);
    }
}
